< previous page page_257 next page >

Page 257
FlatScrollBarsThis property changes the scrollbars to the newer flat-style control.
HoverSelectionNormally, you have to click an item in the ListView to select it. If you set HoverSelection to True, the item is selected (and the ItemClick event fired) when you hover the mouse pointer on the item's icon for a few seconds.
HotTrackingThe name of this property sounds like a dating service, but it is actually a mouse pointer enhancement to bring the look and feel of the ListView more in line with the new Microsoft Active Desktop user interface.
CheckBoxesThe CheckBoxes property controls whether a check box control is displayed beside each item in the ListView. You can determine or set the state of the check box with the Checked property of the item. An ItemCheck event also fires when users click the check box.
Also new to the VB6 ListView is the capability to display a picture behind the items. This feature works much like the background of a Web page. You can load the picture by setting the Picture property of the ListView, as in the following example:
ivMain.Picture=LoadPicture("D:\Pictures\Test.JPG")
In addition, these two properties control the behavior of the picture and its interaction with the list items:
The TextBackGround property controls whether the text has an opaque or transparent background.
The PictureAlignment property controls how the picture is painted on the ListView. You can start at the center or any corner of the picture and display as much as possible, or if the picture is smaller than the list view, you can have it displayed over and over in tiled format.
Examples of some of the new display options are shown in Figure 12.9.
0257-01.jpg
Figure 12.9
These examples of ListView configurations were
not possible in previous versions of Visual Basic.

 
< previous page page_257 next page >